package com.uls.ldcm.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.uls.common.annotation.Excel;
import com.uls.common.core.domain.BaseEntity;

/**
 * 考勤记录对象 lb_attendance
 * 
 * @author gw
 * @date 2024-11-11
 */
public class Attendance extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 考勤记录唯一标识 */
    private Long attendanceId;

    /** 劳务人员ID */
    @Excel(name = "劳务人员ID")
    private Long laborerId;

    /** 劳务人员姓名 */
    @Excel(name = "劳务人员姓名")
    private String name;

    /** 考勤日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "考勤日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date date;

    /** 考勤状态 */
    @Excel(name = "考勤状态")
    private Integer status;

    /** 实际工作小时 */
    @Excel(name = "实际工作小时")
    private BigDecimal hoursWorked;

    /** 创建时间 */
    private Date createdAt;

    /** 更新时间 */
    private Date updatedAt;

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void setAttendanceId(Long attendanceId)
    {
        this.attendanceId = attendanceId;
    }

    public Long getAttendanceId() 
    {
        return attendanceId;
    }
    public void setLaborerId(Long laborerId) 
    {
        this.laborerId = laborerId;
    }

    public Long getLaborerId() 
    {
        return laborerId;
    }
    public void setDate(Date date) 
    {
        this.date = date;
    }

    public Date getDate() 
    {
        return date;
    }
    public void setStatus(Integer status) 
    {
        this.status = status;
    }

    public Integer getStatus() 
    {
        return status;
    }
    public void setHoursWorked(BigDecimal hoursWorked) 
    {
        this.hoursWorked = hoursWorked;
    }

    public BigDecimal getHoursWorked() 
    {
        return hoursWorked;
    }
    public void setCreatedAt(Date createdAt) 
    {
        this.createdAt = createdAt;
    }

    public Date getCreatedAt() 
    {
        return createdAt;
    }
    public void setUpdatedAt(Date updatedAt) 
    {
        this.updatedAt = updatedAt;
    }

    public Date getUpdatedAt() 
    {
        return updatedAt;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("attendanceId", getAttendanceId())
            .append("laborerId", getLaborerId())
                .append("name",getName())
            .append("date", getDate())
            .append("status", getStatus())
            .append("hoursWorked", getHoursWorked())
            .append("createBy", getCreateBy())
            .append("createdAt", getCreatedAt())
            .append("updateBy", getUpdateBy())
            .append("updatedAt", getUpdatedAt())
            .toString();
    }
}
